import service from '@/plugins/utils/request'
let pre = 'api/Address/'
export default{
	//获取选项列表
	//addressId 
	GetAddress(data) {
		return service({
			url: `${pre}GetAddress`,
			method: 'post',
			data
		})
	},
	
	//获取用户的地址列表
	//pageIndex
	//pageSize 
	ListAddress(data) {
		return service({
			url: `${pre}ListAddress`,
			method: 'post',
			data
		})
	},

	//新增收货地址
	//name
	//mobile
	//detail
	//is_default  boolean
	AddAddress(data) {
		return service({
			url: `${pre}AddAddress`,
			method: 'post',
			data
		})
	},

	//更新地址
	//addressId
	//name
	//mobile
	//detail
	//is_default  boolean
	UpdateAddress(data) {
		return service({
			url: `${pre}UpdateAddress`,
			method: 'post',
			data
		})
	},

	//删除地址
	//addressId
	DeleteAddress(data) {
		return service({
			url: `${pre}DeleteAddress`,
			method: 'post',
			data
		})
	},
} 